package com.sunriz.motordrive.mapper;

import com.sunriz.motordrive.domain.DAO.PVNameDAO;
import com.sunriz.motordrive.domain.DAO.PvHcLogDAO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * ClassName: PvHcLogMapper
 * Package: com.sunriz.motordrive.mapper
 * Description:
 *
 * @Author BuTang
 * @Create 2024/9/2 14:56
 * @Version 1.0
 */

@Mapper
public interface PvHcLogMapper {


    List<Integer> getDeviceInfo();
    List<PvHcLogDAO> getLogsByDeviceIdAndTime(@Param("startTime") LocalDateTime startTime,
                                              @Param("endTime") LocalDateTime endTime,
                                              @Param("deviceId") int deviceId);

    void addRegistrationName(@Param("nameOfCN") String nameOfCN,@Param("nameOfEN") String nameOfEN);

    List<PVNameDAO> getPVNames();
}
